<?php
/**
* The view file for the example_mvc page controller
*
* @package    Tina-MVC
* @subpackage Tina-Sample-Apps
* @author     Francis Crossen <francis@crossen.org>
* @see        example_mvc_page.php the page controller
*/

/**
 * You should include this check in every view file you write. The constant is defined in
 * tina_mvc_base_page->load_view() 
 */
if( ! defined('TINA_MVC_LOAD_VIEW') ) exit();
?>
<h2>This is a view loaded from 'example-mvc_page.php'</h2>

<p>This is a page of paragraph.</p>

<p>Some data:<br><br>
$data['var1'] is <?php echo $V['var1'] ?><br>
$data['arrVar'] is <?php echo print_r( $V['arrVar'] , 1 ); ?> (echo'd using print_r() ) <br>
</p>

<p>
Looping over the array using foreach():
</p>    
<table>
    <tr><td>Array Index</td><td>Array Value</td></tr>
    <?php foreach( $V['arrVar'] as $i => $v): ?>
    <tr><td><?php echo  $i ?></td><td><?php echo  $v ?></td></tr>
    <?php  endforeach; ?>
</table>    

<hr>
